<template>
  <div class="HomeWeek">
    <div class="row bg-info my-2 text-light py-1 text-center">
      <div class="col">
        <span>周末去哪里</span>
      </div>
    </div>
    <div class="row mb-2" v-for="item of weekList" :key="item.id">
      <div class="col">
        <div class="card border-0">
          <img class="card-img-top" :src="item.src" alt="Card image cap">
        </div>
        <div class="card-body p-2">
          <h5 class="card-title mb-2">{{item.title}}</h5>
          <p class="card-text mb-0">{{item.desc}}</p>
          <p class="card-text mb-0">
            <small class="text-muted">{{item.tips}}</small>
          </p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "HomeWeek",
  props: {
    weekList: {
      type: Array,
      required: true
    }
  },
  data() {
    return {};
  }
};
</script>


<style scoped>
/* @import "../../assets/css/mixins.styl"  */
.head-wrap {
  height: 2.4rem;
}
.search-icon {
  position: absolute;
  top: 0rem;
  left: 1rem;
}
.search-icon span {
  display: block;
  height: 1.8rem;
  line-height: 1.8rem;
}

.search-input {
  border: none;
  outline: none;
  padding-left: 1.8rem;
  height: 1.8rem;
  line-height: 1.8rem;
}
</style>
